package cn.schoolwow.util.test.module.check.instance.testcase;

import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;
import cn.schoolwow.util.test.module.check.common.flow.SetAddProjectInstanceFlow;
import cn.schoolwow.util.test.module.check.instance.flow.CheckAddProjectProcessFlow;
import cn.schoolwow.util.test.module.check.instance.flow.CheckTargetValueModifyApplyRequestFlow;

public class InstanceCheckTestCaseFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new SetAddProjectInstanceFlow())
                .next(new CheckAddProjectProcessFlow())
                .next(new CheckTargetValueModifyApplyRequestFlow())
                .execute();
    }

    @Override
    public String name() {
        return "单个实例检查测试用例";
    }
}
